import { prizeLevelName } from '@/constants/prize'
import type { PrizeLevel } from '@/enums/prize'
import type { Winner } from './Winner'

export class Prize {
  private id: number

  private name: string

  private prizeLevel: string

  private stock: number

  private numberOfDraws: number

  private numberOfWinners: number

  private imageSrc: string

  constructor(id: number, name: string, prizeLevel: string, stock: number, imageSrc: string) {
    this.id = id
    this.name = name
    this.prizeLevel = prizeLevel
    this.stock = stock
    this.imageSrc = imageSrc
    this.numberOfDraws = 0
    this.numberOfWinners = 0
  }

  getId() {
    return this.id
  }

  getName() {
    return this.name
  }

  getPrizeLevel() {
    return this.prizeLevel
  }

  getStock() {
    return this.stock
  }

  setStock(value: number) {
    this.stock = value
  }

  getImageSrc() {
    return this.imageSrc
  }

  getNumberOfDraws() {
    return this.numberOfDraws
  }

  setNumberOfDraws(value: number) {
    this.numberOfDraws = value
  }

  getNumberOfWinners() {
    return this.numberOfWinners
  }

  setNumberOfWinners(value: number) {
    this.numberOfWinners = value
  }
}
